<?php
class Tempranillo extends Controller {
	public function index()
	{
		//...
	}

	public function form()
	{
		$form = $this->input->post('form');

	}

	public function field()
	{
		$form = $this->input->post('form');
		$field = $this->input->post('field');

		$this->form_validation->run($form);
		$error = form_error($field);

		die(json_encode(array(
			'error' => $error
		)));
	}
}
/* EOF */